home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
The Learning Curve
/
The Learning Curve (Weird Science, 1996).iso
/
engineering
/
gears
/
gears.doc
< prev
next >
Wrap
Text File
|
1992-06-23
|
4KB
|
122 lines
Amiga Gears
Veraion 1.1
by Joel Swank
October 22, 1989
SYNOPSIS:
Gears calculates and displays the gears of a multispeed bicycle.
It works for bicycles with 3 to 21 gear combinitations. Gears opens a
custom screen and window that is slightly larger than normal (640x225).
The Main window has gadgets for entering the data about the bicycle and
space for displaying the results.
OPERATION:
The gears icon is set up to automaticaly load and display a sample
gearset. To see this, just double click the gears icon. Then you can
enter your own gearset as follows.
First select the number of gears in the front using the Gears/Front
menu. From one to three gears are allowed. Then select the number of
gears in the rear using the Gears/Rear menu. From three to seven gears
are allowed. Next enter the number teeth on each gear in the string
gadgets in the main window. There is a column for the front and a
column for the rear. Select the wheel diameter units by clicking the
in./mm(inches or millimeters) gadget and enter the wheel diameter in
the string gadget. Finally click the CALC gadget. A table will be
displayed in the main window. The first column is the gear combo
( 48x17 ). Next column is the calculated effective wheel size in the
selected units for this combination. The next 3 columns give the spacing
from the previous 1, 2, and 3 gears in the table. The table is sorted by
ascending effective wheel size.
The project menu allows valid gearsets to be saved and loaded in an
ASCII file. You will be presented with RJ's file requester to select your
file. You can also get a hardcopy of the table on the PRT: device using
the PRINT menu selection. There is also a help screen that is an
abbreviated version of this file.
Version 1.1 now has RJ's color window (colors menuitem) to allow
you to change the screen colors. The color palette is saved in the data
file. Files from Version 1 (without colors) can still be read.
ARGUMENTS:
Gears allows several parameters to be specified at startup. These
may be specified on the command line when run from a CLI, or in the
TOOLTYPES array of the Gears icon. You can use the Workbench INFO
menu item to edit the TOOLTYPES array.
CLI calling format:
>gears [-i] [-m] [-dnn] filename
Parameter meaning:
CLI: -i
WB: INCHES=
Selects the measurement units of the wheel diameter
to be inches (the default).
CLI: -m
WB: MM=
Selects the measurement units of the wheel diameter
to be millimeters.
CLI: -dnn
WB: DIAMETER=nn
Selects the wheel diameter.
CLI: filename
WB: FILE=filename
Selects a gears file to be loaded and displayed at
startup.
The tooltypes keywords must be in caps and all must be followed
by an equal sign (=). The diameter value and units specifications
are ignored if a file is specified.
LIMITS:
Front gears: 10 to 80
Rear gears: 10 to 40
Diameter: 1 to 1000
FILE FORMAT:
Gears produces ASCII text files of gearset data. Each file is a
single line of data composed of data elements separated by commas.
All elements are one to five digit integer numbers, except for the
inches/millimeter indicater. Following is the order of the data:
Number of gears on the front
Number of gears on the rear
Diameter of the wheel.
inches/millimeter indicater (i or m)
Teeth on each of the front gears
Teeth on each of the rear gears
The 8 color register values
sample file "12spd.grs":
2,6,27,i,54,45,13,15,17,20,26,32,364,2730,546,4048,4040,3840,384,4095
FORMULA:
The calculations are made with the following formula:
Number of teeth on the front gear * Wheel diameter
-------------------------------------------------------
Number of teeth on the rear gear
COMPILING:
Gears was developed with the Aztec C compiler. A makefile is
included. It includes the file requester and color window from RJ Mical's
Prosuite package. I have precompiled these into library files (not
included). The screen, window, and gadgets were developed with Power
The gadget images were created as DPaint brush files (included).
Windows 2.0. The Power Windows save files are also included (.pw suffix).